package com.example.testapplication;


import com.bumptech.glide.annotation.GlideExtension;
import com.bumptech.glide.annotation.GlideOption;
import com.bumptech.glide.request.RequestOptions;
@GlideExtension
public class MyGlideExtension {
    // 实现private的构造函数
    private MyGlideExtension(){}
 /**
  *  全局统一配置
  * */
    @GlideOption
    public static void injectOptions(RequestOptions options){
        options.circleCrop().placeholder(R.mipmap.loading).error(R.mipmap.loader_error);
    }
}
